New get_volume_for_path() method. (struct _GtkFileSystemIface): Finally
authorFederico Mena Quintero <federico@ximian.com>
Fri, 16 Jan 2004 03:35:33 +0000 (03:35 +0000)
committerFederico Mena Quintero <federico@src.gnome.org>
Fri, 16 Jan 2004 03:35:33 +0000 (03:35 +0000)
commitf2f12b9aaeb456e45428e80fe5295fcdba2b8f03
treec66a47a289e67157849abb538cc2a8610b6a4b94
parentc13c0a01d80d71744abb8b68d547957da156a8b0
New get_volume_for_path() method. (struct _GtkFileSystemIface): Finally

2004-01-16  Federico Mena Quintero  <federico@ximian.com>

* gtk/gtkfilesystem.h (struct _GtkFileSystemIface): New
get_volume_for_path() method.
(struct _GtkFileSystemIface): Finally removed the list_roots() and
get_root_info() methods, and the "roots-changed" signal.

* gtk/gtkfilesystem.c (gtk_file_system_get_volume_for_path): New
function.
(gtk_file_system_list_roots): Removed.
(gtk_file_system_get_root_info): Removed.

* gtk/gtkfilesystemunix.c
(gtk_file_system_unix_get_volume_for_path): Implement.
(get_root_volume): New helper function.
(gtk_file_system_unix_list_volumes): Use get_root_volume().
(gtk_file_system_unix_list_roots): Removed.
(gtk_file_system_unix_get_root_info): Removed.

* gtk/gtkfilesystemmodel.c (_gtk_file_system_model_new): Don't
accept a NULL root_path.
(struct _GtkFileSystemModel): Add a field to remember the
root_path.
(_gtk_file_system_model_new): Store the root_path in the model
structure.
(find_and_ref_path): Stop going up the hierarchy at the root_path
of the model.  Also, don't return prematurely when walking up the
hierarchy.

* gtk/gtkfilechooserdefault.c (create_file_list): Sigh, restore
the rules_hint.
(struct _GtkFileChooserDefault): Added a current_volume_path field.
(set_tree_model): New function; create the folder tree model here.
(create_folder_tree): Don't create the model here.
(set_list_model): Set the show_hidden flag on the list model.
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkfilechooserdefault.c
gtk/gtkfilesystem.c
gtk/gtkfilesystem.h
gtk/gtkfilesystemmodel.c
gtk/gtkfilesystemunix.c